package com.aia.prm.web;

import java.util.ArrayList;
import java.util.List;

import org.apache.log4j.Logger;

import com.aia.prm.domain.VOGroup;
import com.aia.prm.domain.VOPext;
import com.aia.prm.domain.VOPlan;
import com.aia.prm.service.DefaultService;
import com.cfh.util.Tools;
import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class Form1Action extends ActionSupport {
	private String pid;
	private String refid;
	private String status;
	private VOPlan vOplan;
	private String groupJSON;
	private List<VOPext> listVOpext;
	private List<VOGroup> listVOGroup;
	private List<VOPext> pactList = new ArrayList<VOPext>();
	
	private List<VOPext> amountList = new ArrayList<VOPext>();
	
	private List<VOPext> pictureList = new ArrayList<VOPext>();
	private List<VOPext> pictureList2 = new ArrayList<VOPext>();
	
	private List<String> ageList = new ArrayList<String>();
	
	public String execute() {
		if (logger.isDebugEnabled()) {
			logger.debug("execute() - start"); //$NON-NLS-1$
		}

		defaultService.getForm1(this);
		postExecute();
		return Tools.smartReturn(this);
	}

	protected void postExecute() {
		
	}

	private static final Logger logger = Logger.getLogger(Form1Action.class);


	public DefaultService getDefaultService() {
		return defaultService;
	}

	public void setDefaultService(DefaultService defaultService) {
		this.defaultService = defaultService;
	}



	public VOPlan getvOplan() {
		return vOplan;
	}

	public void setvOplan(VOPlan vOplan) {
		this.vOplan = vOplan;
	}

	public List<VOGroup> getListVOGroup() {
		return listVOGroup;
	}

	public void setListVOGroup(List<VOGroup> listVOGroup) {
		this.listVOGroup = listVOGroup;
	}

	public List<VOPext> getListVOpext() {
		return listVOpext;
	}

	public void setListVOpext(List<VOPext> listVOpext) {
		this.listVOpext = listVOpext;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public List<VOPext> getPactList() {
		return pactList;
	}

	public void setPactList(List<VOPext> pactList) {
		this.pactList = pactList;
	}

	public List<VOPext> getAmountList() {
		return amountList;
	}

	public void setAmountList(List<VOPext> amountList) {
		this.amountList = amountList;
	}

	public List<String> getAgeList() {
		return ageList;
	}

	public void setAgeList(List<String> ageList) {
		this.ageList = ageList;
	}

	public String getGroupJSON() {
		return groupJSON;
	}

	public void setGroupJSON(String groupJSON) {
		this.groupJSON = groupJSON;
	}

	public String getRefid() {
		return refid;
	}

	public void setRefid(String refid) {
		this.refid = refid;
	}

	public List<VOPext> getPictureList() {
		return pictureList;
	}

	public void setPictureList(List<VOPext> pictureList) {
		this.pictureList = pictureList;
	}

	public List<VOPext> getPictureList2() {
		return pictureList2;
	}

	public void setPictureList2(List<VOPext> pictureList2) {
		this.pictureList2 = pictureList2;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	private DefaultService defaultService;
}
